package com.itheima.jobs;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.OrderSettingService;

/**
 * ClearOrderSettingAtOneTime.java (定时清理预约设置数据)
 *
 * @author 许家磊
 * @version 1.0.0
 * @date 2019/8/8 18:12
 */
public class ClearOrderSettingAtOneTime {
    @Reference
    private OrderSettingService orderSettingService;

    /**
     * 定时清理预约设置
     */
    public void clearOSAtOneTime() {
        //定时清理预约数据
        orderSettingService.clearOSAtOneTime();
        System.out.println("定时清理预约设置数据");
    }
}
